package com.shi.yoyoshop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shi.yoyoshop.bean.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 20556
 * @description 针对表【order】的数据库操作Mapper
 * @createDate 2024-01-05 15:53:54
 * @Entity com.shi.yoyoshop.bean.Order
 */
public interface OrderMapper extends BaseMapper<Order> {

    boolean insertOrder(@Param("order") Order order);

    List<Order> selectOrderListByUserId(@Param("userId") Integer userId);

    void updateOrderById(@Param("order") Order order);

    Order selectOrderById(@Param("orderId") Integer orderId);

    IPage<Order> selectOrderPage(Page<Order> page, @Param("status") Integer status);
}




